package net.zjitc.ex01;

/**
 * Created by Administrator on 2017/11/1.
 */
public class Person {
    public String name;
    private int age;

    public Person(String name) {
        this.name = name;
    }

    public Person() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void speak(String name,int age){
        System.out.println(name+"今年"+age);
    }

    @Override
    public String toString() {
        return "net.zjitc.ex01.Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
